﻿using Newtonsoft.Json;

namespace QQMapSDK.Models
{
    public class GeoCoderResult
    {
        #region Model
        [JsonProperty("location")]
        public Location Location { get; set; }

        [JsonProperty("address")]
        public string? Address { get; set; }

        [JsonProperty("deviation")]
        public int? Deviation { get; set; }

        [JsonProperty("level")]
        public int? Level { get; set; }

        [JsonProperty("reliability")]
        public int? Reliability { get; set; }

        [JsonProperty("similarity")]
        public float? Similarity { get; set; } = 0;

        [JsonProperty("title")]
        public string? Title { get; set; }

        [JsonProperty("poi_count")]
        public int PoiCount { get; set; }

        [JsonProperty("pois")]
        public List<Poi>? Pois { get; set; }

        [JsonProperty("address_component")]
        public AddressComponent? AddressComponent { get; set; }

        [JsonProperty("ad_info")]
        public AdInfo? AdInfo { get; set; }

        [JsonProperty("address_reference")]
        public AddressReference? AddressReference { get; set; }

        [JsonProperty("formatted_addresses")]
        public FormattedAddresses? FormattedAddresses { get; set; }
        #endregion
    }
}